﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.PhilChuang.Utils;

namespace Com.PhilChuang.Mobile.Apps.LocationSender.Model.Data
{
	[Serializable]
	public class LocationSenderSettings : ICloneable
	{
		[SimpleEqualsAndHashcode]
		public bool UserApprovedLocationServices { get; set; }

		[SimpleEqualsAndHashcode]
		public int NumRuns { get; set; }

		[SimpleEqualsAndHashcode]
		public bool AskToRate { get; set; }

		public LocationSenderSettings ()
		{
			UserApprovedLocationServices = false;
			NumRuns = 0;
			AskToRate = true;
		}

		#region Equals / Clone
		public override bool Equals (object obj)
		{ return SimpleEqualsAndHashcode.Equals (this, obj); }

		public override int GetHashCode ()
		{ return SimpleEqualsAndHashcode.GetHashCode (this); }

		public virtual Object Clone ()
		{ return SimpleEqualsAndHashcode.Clone (this); }
		#endregion
	}
}
